package WebExample;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Set;


public class Config {
    Properties properties;

    public String getProperty(String filename, String key) throws IOException {
        FileInputStream propInputStream = new FileInputStream(filename);
        this.properties.load(propInputStream);
        String value = this.properties.getProperty(key);
        return value;
    }

    public Set<String> stringPropertynames(String key) {
        Set<String> value = this.properties.stringPropertyNames();
        return value;
    }

    public Enumeration<?> propertyNames() {
        Enumeration<?> value = this.properties.propertyNames();
        return value;

    }


}


